package fr.appliClient.client.widget.utils.widget.errorsmessages;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Label;

/**
 * Label for error message.
 * @author renavarr
 *
 */
public class ErrorLabel extends Label {

	/**
	 * Define the text's weight.
	 */
	private double fontSize = 20;
	
	
	/**
	 * The color of the text.
	 */
	private String color = "red";
	
	public ErrorLabel(String message, boolean wordwrap) {
		super(message, wordwrap);
		this.getElement().getStyle().setFontSize(this.fontSize, Unit.PX);
		this.getElement().getStyle().setColor(this.color);
	}
}
